package com.oliver.picturebackend.controller;

import com.oliver.picturebackend.common.BaseResponse;
import com.oliver.picturebackend.common.ResultUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName MainController
 * @Description TODO
 * @Author snow
 * @Date 2024/12/8 14:07
 **/
@RestController
@RequestMapping("/")
public class MainController {

    @GetMapping("/health")
    public BaseResponse<String> health(){
        return ResultUtils.success("ok");
    }

}
